package com.hongxun.design.utils;


/**
 * Created by zerdoor_pc on 2016/8/3.
 */
public class CheckClickTime {
    static CheckClickTime instence;

    public static CheckClickTime getInstence() {
        if (instence == null) {
            instence = new CheckClickTime();
        }
        return instence;
    }

    static long mExitTime = 0;
    static Boolean flag = true;
    static String v;

    public boolean back() {

        if ((System.currentTimeMillis() - mExitTime) >=1000) {
            flag = true;
            mExitTime = System.currentTimeMillis();
        } else {
            flag = false;
        }
        return flag;
    }
}
